package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

import java.util.Date;

/**
    * 上报事件
    */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "blade_alarm_event")
public class AlarmEvent extends BaseEntity {

	/**
	 * 物业id
	 */
	@ApiModelProperty(value = "物业id")
	@TableField(value = "building_id")
	private Long buildingId;

    /**
     * 电梯id
     */
	@ApiModelProperty(value = "电梯id")
    @TableField(value = "elevator_id")
    private Long elevatorId;

    /**
     * 设备id
     */
	@ApiModelProperty(value = "设备id")
    @TableField(value = "device_id")
    private String deviceId;

    /**
     * 事件类型
     */
	@ApiModelProperty(value = "事件类型")
    @TableField(value = "event_type")
    private Integer eventType;

    /**
     * 事件类型对应消息
     */
	@ApiModelProperty(value = "事件类型对应消息")
    @TableField(value = "event_msg")
    private String eventMsg;

    /**
     * base64图片
     */
	@ApiModelProperty(value = "base64图片")
    @TableField(value = "event_image")
    private String eventImage;

    /**
     * 事件时间
     */
	@ApiModelProperty(value = "事件时间")
    @TableField(value = "event_time_stamp")
    private Date eventTimeStamp;
}
